<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<form id='fmTbFlow'  action="TbFlowServlet?method=${sessionScope.tbFlow==null?'add':'edit'}" method='post'>
<input type='hidden' name='flowId' id='flowId' value='${sessionScope.tbFlow.flowId }' />
<table>
<tr><td colspan='2'></td></tr>
<tr>
    <td>流程名称:</td>
    <td><input type='text' name='flowName' id='flowName' value='${sessionScope.tbFlow.flowName }' /></td>
</tr>
<tr>
    <td>流程类型:</td>
    <td>
    <select name='flowTypeId' id='flowTypeId' >
    <option value='0' selected >无</option>
     <c:forEach items="${sessionScope.tbFlowTypeListALL}" var="tbFlowTypeList" varStatus="status">
	    <option value='${tbFlowTypeList.flowTypeId }' ${tbFlowTypeList.flowTypeId==sessionScope.tbFlow.flowTypeId?' selected ':''} >${tbFlowTypeList.flowTypeName }</option> 
     </c:forEach>
     </select>
    </td>
</tr>
<tr>
    <td colspan='2' align="center"><input type="submit" name="btsubmit" id="btsubmit" value="${sessionScope.tbFlow.flowId==null?'添加':'修改'}" /><input type='reset' value='重置' /><input type='button' value='返回' onclick='history.go(-1);' /></td>
</tr></table>
</form><jsp:include page="../foot.jsp"></jsp:include>
</body>
</html>